package com.gzsxy.esjy.service.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gzsxy.esjy.service.base.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 评论
 * </p>
 *
 * @author zxl
 * @since 2021-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_comment")
@ApiModel(value="Comment对象", description="评论")
public class Comment extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "评价分数")
    private BigDecimal contentScore;

    @ApiModelProperty(value = "评论人ID（外键）")
    private String fromuserId;

    @ApiModelProperty(value = "来自账号")
    private String fromuserName;

    @ApiModelProperty(value = "商品ID（外键）")
    private String productId;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "用户ip")
    private String userIp;

    @ApiModelProperty(value = "回复内容")
    private String replyContent;

    @ApiModelProperty(value = "回复时间")
    private Date replyDate;

    @ApiModelProperty(value = "回复人ID（外键）")
    private String replyUserId;

    @ApiModelProperty(value = "回复账号")
    private String replyUserName;





}
